<template>
  <div class="page-invalid">
    <div v-if="invalidType === 'updating'">
      <p>系统正在升级...</p>
      <p>预计2022-09-16正常服务</p>
    </div>
    <div v-else>页面丢失....</div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'PageInvalid',

  data() {
    return {
      invalidType: ''
    }
  },

  created() {
    this.invalidType = this.$route.params.invalidType as string
  }
})
</script>

<style lang="scss" scoped>
.page-invalid {
  height: 100%;
  padding: 2em 1em;
  box-sizing: border-box;
  text-align: center;
}
</style>
